import { Module } from "@nestjs/common";
import { HardwareController } from "./hardware.controller";
import { HardwareService } from "./hardware.service";
import { TransportClientService } from "./transport-client/transport-client.service";
import { MockTransportServerService } from "./mock-socket-server/mock-transport-server.service";
import { configuration } from "../../../config/config";
import { NatsClientModule } from "@app/nats-client";

@Module({
  imports: [
    NatsClientModule.forRoot(configuration.hardwareServer.nats_client_name),
  ],
  controllers: [HardwareController],
  providers: [
    HardwareService,
    MockTransportServerService,
    TransportClientService,
  ],
})
export class HardwareModule {}
